﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;

namespace netRecord
{
    public class StudentEntityConfig : IEntityTypeConfiguration<StudentEntity>
    {
        public void Configure(EntityTypeBuilder<StudentEntity> builder)
        {
            builder.ToTable("T_Student").ToTable(p=>p.HasComment("学生管理表")).HasKey(p=>p.Id);
        }
    }
}
